package com.itheima.service;

import com.itheima.dto.AddAddressBookDto;
import com.itheima.dto.ModifyAddressBookDto;
import com.itheima.dto.SetDefaultDto;
import com.itheima.pojo.AddressBook;

import java.util.List;

/**
 * @author YangJiaHao
 */

public interface AddressBookService {

    Boolean setDefault(SetDefaultDto setDefaultDto);

    AddressBook getDefault();

    Boolean add(AddAddressBookDto dto);

    AddressBook getById(String id);

    List<AddressBook> getList();

    Boolean remove(String ids);

    Boolean modify(ModifyAddressBookDto dto);
}
